/* 
 * File:   FileInfo.h
 * Author: Dann
 *
 * Created on 9 de junio de 2013, 08:19 PM
 */

#ifndef FILEINFO_H
#define	FILEINFO_H
#include <sys/stat.h>
#include <pwd.h>
#include <grp.h>
#include <string>


class FileInfo {
public:
    FileInfo(const std::string parentFolder, const std::string name);
    FileInfo(const FileInfo& orig);
    virtual ~FileInfo();
    std::string getPermissions();
    std::string getOwner();
    std::string getGroup();
    long long getSize();
    std::string getLastModificationTime();
    std::string getLastAccessTime();
    std::string getName();
private:
    struct stat st_info;
    std::string name;
};

#endif	/* FILEINFO_H */

